﻿<views:MvxWpfView 
    x:Class="Sidvall.UI.Wpf.Views.StartView"
    xmlns:views="clr-namespace:MvvmCross.Wpf.Views;assembly=MvvmCross.Wpf"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:vms="clr-namespace:Sidvall.UI.Wpf.ViewModels"
    xmlns:ig="http://schemas.infragistics.com/xaml" 
    xmlns:Controls="clr-namespace:Sidvall.UI.Wpf.Controls;assembly=Sidvall.UI.Wpf.IG"  
    xmlns:Controls2="clr-namespace:Sidvall.UI.Wpf.Controls;assembly=Sidvall.UI.Wpf"  
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">

    <Grid d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type vms:StartViewModel}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Controls:TreeControl x:Name="TreeControl" DataContext="{Binding TreeControlViewModel}" PopupHeight="400" Width="300" HorizontalAlignment="Left" 
                              UsePopupDialog="True" PopupDialogHeader="Select..." />


        <Controls:HeaderedXamDateTimeInput Grid.Row="1" LabelText="test dlfkjs sje f sejfoew" DateTimeWidth="100" DateTimeHorizontalAlignment="Left" />
        <ig:XamDateTimeInput Grid.Row="2" />

        <Controls:HeaderedXamNumericInput Grid.Row="3" LabelText="test dlfkjs sje f sejfoew" NumericWidth="100" NumericHorizontalAlignment="Left"
                                          NumericMask="{}{double:-2.2}" NumericValueTypeName="Decimal?" />
        <ig:XamNumericInput Grid.Row="4" ValueTypeName="Int32?" />

        <Controls2:HeaderedTextBox Grid.Row="5" LabelText="test" />
        <TextBox Grid.Row="6" />

        <TextBlock Grid.Row="8" Text="{Binding ResourceCollectionManager.StartViewResourceManager.StartInfo}" />
        <StackPanel Grid.Row="9" Orientation="Horizontal">
            <Button Click="OnDialogButtonClick">Dialog</Button>
            <Button Click="OnEnglishButtonClick">Engelska</Button>
            <Button Click="OnSwedishButtonClick">Svenska</Button>
        </StackPanel>
    </Grid>
</views:MvxWpfView>
